package ua.crimea.bat.ss.dao;

import org.springframework.dao.DataAccessException;
import ua.crimea.bat.ss.model.beans.Album;
import ua.crimea.bat.ss.model.beans.Image;

import java.util.Collection;

/**
 * User: bat
 * Date: Mar 30, 2010
 * Time: 1:01:45 PM
 */
public interface PhotoDao {
    Image loadImage(Integer id) throws DataAccessException;

    void storeImage(Image image) throws DataAccessException;

    void deleteImage(Integer id) throws DataAccessException;

    Collection<Album> findPrivateAlbums() throws DataAccessException;

    Collection<Album> findPublicAlbums() throws DataAccessException;

    Album loadAlbum(Integer id) throws DataAccessException;

    void storeAlbum(Album album) throws DataAccessException;

    void deleteAlbum(Integer id) throws DataAccessException;

}
